package com.feizhoutuobang.shapeline.bo.impl;

import java.util.Date;

import com.feizhoutuobang.shapeline.bo.Delivery;
import com.feizhoutuobang.shapeline.util.Calendar;

public class DeliveryImpl implements Delivery {

	private String id = "";
	private String userId = "";
	private String deliverEmail = "";
	private String filePath = "";
	private String fileName = "";
	private String createTime = Calendar.INVALID_TIME;
	private String deliverTime = Calendar.INVALID_TIME;
	private boolean done = false;
	private boolean successful = false;
	private String message = "";

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getDeliverEmail() {
		return deliverEmail;
	}

	public void setDeliverEmail(String deliverEmail) {
		this.deliverEmail = deliverEmail;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public Date getCreateTime() {
		return Calendar.parse(createTime);
	}

	public void setCreateTime(Date createTime) {
		this.createTime = Calendar.format(createTime);
	}

	public Date getDeliverTime() {
		return Calendar.parse(deliverTime);
	}

	public void setDeliverTime(Date deliverTime) {
		this.deliverTime = Calendar.format(deliverTime);
	}

	public boolean isDone() {
		return done;
	}

	public void setDone(boolean done) {
		this.done = done;
	}

	public boolean isSuccessful() {
		return successful;
	}

	public void setSuccessful(boolean successful) {
		this.successful = successful;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getCreateTime_() {
		return createTime;
	}

	public void setCreateTime_(String createTime) {
		this.createTime = createTime;
	}

	public String getDeliverTime_() {
		return deliverTime;
	}

	public void setDeliverTime_(String deliverTime) {
		this.deliverTime = deliverTime;
	}
}
